# set Abseil lib variables
set(ABSL_HOME ${HOME_THIRDPARTY}/abseil)
set(ABSL_INCLUDE_DIR ${ABSL_HOME}/include)
set(ABSL_LIB_DIR ${ABSL_HOME}/lib/unix)
set(AbslLibs
  absl_base
  absl_int128
  absl_city
  absl_hash
  absl_hashtablez_sampler
  absl_random_seed_gen_exception
  absl_random_seed_sequences
  absl_raw_hash_set
  absl_malloc_internal
  absl_spinlock_wait
  absl_synchronization
  absl_throw_delegate
  absl_raw_logging_internal
  absl_time
  absl_time_zone)

SET(THIRD_PARTY_HOME ${HOME_THIRDPARTY})

INCLUDE_DIRECTORIES(
    ## third party
    ${THIRD_PARTY_HOME}/json
    ${THIRD_PARTY_HOME}/gurobi
)

link_directories(${ABSL_LIB_DIR})

find_package(OpenMP REQUIRED)
if (OPENMP_FOUND)
    message("OPENMP FOUND")
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
